package com.fitness.front.convertor;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fitness.front.modal.coach.dto.CoachCommentDto;
import com.fitness.front.modal.coach.entity.CoachComment;
import com.fitness.front.modal.coach.vo.CoachCommentVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface CoachCommentConvertor {
    Page<CoachCommentVO> entity2Vo(Page<CoachComment> pageVo);
    CoachCommentVO entity2Vo(CoachComment result);

    CoachComment dto2Entity(CoachCommentDto commentDto);
}
